import Vue from "vue";
import VueRouter from "vue-router";
import Index from "../views/Index.vue";
import BookDesc from "../views/BookDesc.vue"
Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    name: "index",
    component: Index,
  },//配置图书详情页的路由
  {

    path: "/bookDesc",
    name: "bookDesc",
    component: BookDesc,
  },

];

const router = new VueRouter({
  routes,
});

export default router;
